//
//  WebRequest.h
//  Growth
//
//  Created by Hobo.Chen on 1/5/12.
//  Copyright 2012 MEETStudio. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface WebRequest : NSObject {

    
}

#pragma mark - 登录注册
+ (NSMutableURLRequest *)LoginRequestWith:(NSData *)jsonData;

+ (NSMutableURLRequest *)verifyTokenWith:(NSString *)accessToken platformId:(int )platformId;

+ (NSMutableURLRequest *)registBindingNewWith:(NSData *)jsonData;

+ (NSMutableURLRequest *)BindingExitWith:(NSData *)jsonData;

+ (NSMutableURLRequest *)userBindingWith:(NSData *)jsonData;

+ (NSMutableURLRequest *)getSinaUserInfoWith;

+ (NSMutableURLRequest *)pushtokenModifyRequestWith:(NSData *)jsonData;


#pragma mark - 时间轴
+ (NSMutableURLRequest *)timelineContentRequestWith:(NSString *)timelineId;
+ (NSMutableURLRequest *)diaryCreateRequestWith:(NSData *)jsonData;
+ (NSMutableURLRequest *)diaryCommentRequestWith:(NSData *)jsonData;
+ (NSMutableURLRequest *)diaryLikeRequestWith:(NSString *)diaryinfo;
+ (NSMutableURLRequest *)diaryTLRuleRequestWith:(NSString *)duration;
+ (NSMutableURLRequest *)diaryContentRequestWith:(NSString *)diaryId userId:(int)uid;
+ (NSMutableURLRequest *)diaryTrendRequestWith:(NSString *)url;
+ (NSMutableURLRequest *)timelineInfoRequestWith:(int)tid;

//日志图片的相册视图
+ (NSMutableURLRequest *)diaryAlbumRequestWith:(NSString *)diaryPictures;

//日志图片时间点后的相册图片
+ (NSMutableURLRequest *)albumDiaryRequestWith:(int)tid timePoint:(NSString *)timePoint isOlder:(NSString *)isOlder  pageNo:(int)pageNo pageSize:(int)pageSize;


//时间轴日志列表
+ (NSMutableURLRequest *)timelineDiaryListRequestWith:(int)userId timelineId:(int)timelineId  timePoint:(long long int)timePoint pageNo:(int)pageNo  pageSize:(int)pageSize;

//时间轴最新日志
+ (NSMutableURLRequest *)timelineNewDiaryRequestWith:(int)userId timelineId:(int)timelineId  timePoint:(long long int)timePoint;


+(NSMutableURLRequest *)friendsNewsRequestWith:(int)uid  pageNo:(int)pageNo pageSize:(int)pageSize;
+(NSMutableURLRequest *)neighboursNewsRequestWith:(int)uid  pageNo:(int)pageNo pageSize:(int)pageSize;

#pragma mark -频道
+ (NSMutableURLRequest *)postListRequestWith:(NSString *)channelId;
+ (NSMutableURLRequest *)postDetailRequestWith:(NSString *)channelId user:(NSString *)userId;
+ (NSMutableURLRequest *)postCommentRequestWith:(NSData *)jsonData;
+ (NSMutableURLRequest *)postShoucangRequestWith:(NSData *)jsonData;


#pragma mark -Family-家庭
+ (NSMutableURLRequest *)userFamilyMemberRequestWith:(NSString *)userId;
+ (NSMutableURLRequest *)familyAcceptWith:(int)fid;
+ (NSMutableURLRequest *)familyIgnoreWith:(int)fid;
+ (NSMutableURLRequest *)familyInviteWith:(NSData *)jsonData;
+ (NSMutableURLRequest *)familyCovorModifyWith:(NSData *)jsonData;
+ (NSMutableURLRequest *)familyInfoRequestWith:(int)uid;
//申请
+ (NSMutableURLRequest *)familyApplyWith:(NSData *)jsonData;
+ (NSMutableURLRequest *)familyMemberRoleRequestWith;
+ (NSMutableURLRequest *)familyUnhandleRequestWith:(int)uid;
+ (NSMutableURLRequest *)familyTrendsRequestWith:(int)uid pageNo:(int)pageNo pageSize:(int)pageSize;

#pragma mark - 手机

+ (NSMutableURLRequest *)phoneVertifySMSRequesetWith:(NSString *)phoneNum;
#pragma mark -系统、用户、收藏、私信、关注

+ (NSMutableURLRequest *)buddyListRequestWith:(NSString *)userId;
+ (NSMutableURLRequest *)userInfoRequestWith:(NSString *)userId;
+ (NSMutableURLRequest *)userShouCangRequestWith:(NSString *)userId pageNo:(int)pageNo pageSize:(int)pageSize;

+ (NSMutableURLRequest *)userLetterRequestWith:(NSString *)userId;

+ (NSMutableURLRequest *)userLetterDetailRequestWith:(NSString *)userId toUserId:(NSString *)toUserId;


+ (NSMutableURLRequest *)WriteLetterRequestWith:(NSData *)jsonData;

+ (NSMutableURLRequest *)addFamilyMemberRequestWith:(NSData *)jsonData;



+ (NSMutableURLRequest *)userTiemlineMemberRequestWith:(NSString *)userId;

//系统消息

+ (NSMutableURLRequest *)systemMessageCountRequestWith:(NSString *)userId;

+ (NSMutableURLRequest *)systemMessageListRequestWith:(NSString *)userId  pageNo:(int)pageNo  pageSize:(int)pageSize;

+ (NSMutableURLRequest *)systemMessageHaveReadRequestWith:(int)userId;

+ (NSMutableURLRequest *)unreadLetterCountRequestWith:(NSString *)userId;

+ (NSMutableURLRequest *)timelineRecmmendRequestWith:(NSString *)userId  pageNo:(int)pageNo  pageSize:(int)pageSize;
+ (NSMutableURLRequest *)payAttentionRequestWith:(int)tid userId:(int)uid;

+ (NSMutableURLRequest *)attentionListRequestWith:(int)uid pageNo:(int)pageNo pageSize:(int)pageSize;

+ (NSMutableURLRequest *)modifyUserLocalRequestWith:(NSData *)jsonData;

//主页封面
+ (NSMutableURLRequest *)timelineCoverRequestWith:(NSData *)jsonData;


//计划、大事记 Growth1.0
+(NSMutableURLRequest *)getPlanOrAnniversaryRequestWith:(int)uid tid:(int)tid categeryId:(int)cid pageNo:(int)pageNo pageSize:(int)pageSize;

//大事记、疫苗、便便 Growth 2.0

+ (NSMutableURLRequest *)getActivityRequestWith:(int)tid activityType:(NSString *)activityType pageNo:(int)pageNo pageSize:(int)pageSize ;
+ (NSMutableURLRequest *)createActivityRequestWith:(NSData *)jsonData;
+ (NSMutableURLRequest *)activityCheckRequestWith:(int)aid;

//设置
+ (NSMutableURLRequest *)userInfoModifyRequestWith:(NSData *)jsonData;
+ (NSMutableURLRequest *)userGravatarModifyRequestWith:(NSData *)jsonData;
+ (NSMutableURLRequest *)timelineInfoModifyRequestWith:(NSData *)jsonData;

//verify password
+ (NSMutableURLRequest *)verifyPassWordRequestWith:(NSData *)jsonData;
+ (NSMutableURLRequest *)modifyPassWordRequestWith:(NSData *)jsonData;

//verify userinfo
+ (NSMutableURLRequest *)verifyNickNameRequest:(NSString *)nickName;
+ (NSMutableURLRequest *)verifyEmailRequest:(NSString *)email;

//注册
+ (NSMutableURLRequest *)registRequestWith:(NSData *)jsonData;

//图片墙
+ (NSMutableURLRequest *)imageWallRequestWith:(int)pageNo pageSize:(int)pageSize;
+ (NSMutableURLRequest *)openDiaryRequestWith:(int)did;

//最新 、 最热
+ (NSMutableURLRequest *)newsRequest:(int)uid pageNo:(int)pageNo pageSize:(int)pageSize;
+ (NSMutableURLRequest *)popularRequest: (int)pageNo pageSize:(int)pageSize;

//家人、好友权限
+ (NSMutableURLRequest *)diaryFamily:(int)uid;
+ (NSMutableURLRequest *)diaryFreinds:(int)uid;
//系统时间
+ (NSMutableURLRequest *)systemDate;
#pragma mark -
#pragma mark Invite Friend
//获取好友列表
+ (NSMutableURLRequest *)allFriendsWith:(int)uid;

//接受好友邀请
+ (NSMutableURLRequest *)acceptFriendInvite:(int)fid;

//忽略好友邀请
+ (NSMutableURLRequest *)gnoreFriendInvite:(int)fid;


//邀请好友
+ (NSMutableURLRequest *)inviteFriendWith:(int)uid fuid:(int)fuid;


//用户搜索
+ (NSMutableURLRequest *)userSearchWith:(int)uid keyWord:(NSString *)keyWord pageNo:(int)pageNo pageSize:(int)pageSize;

//好友推荐：uid
+ (NSMutableURLRequest *)recommendFriendsWith:(int)uid pageNo:(int)pageNo pageSize:(int)pageSize;


#pragma mark -
#pragma mark Personal View
//用户与用户关系判断(1 家人, 2 好友, 3等待家人同意, 4等待好友同意, 5陌生人) 
+ (NSMutableURLRequest *)userRelationWith:(int)uid guid:(int)guid;

//用户宝宝日志
+ (NSMutableURLRequest *)userDiariesWith:(int)uid guid:(int)guid pageNo:(int)pageNo pageSize:(int)pageSize;

//用户信息
+ (NSMutableURLRequest *)userInfoWith:(int)uid;


#pragma mark - 
#pragma mark album upload
/**
 * 上传图片
 */
+ (NSMutableURLRequest *)albumUploadWith:(NSData *)jsonData;

/**
 * 添加修改备注、设置月度封面、年度封面
 */
+ (NSMutableURLRequest *)albumPhotoModifyWith:(NSData *)jsonData;

/**
 * 相册列表
 */
+ (NSMutableURLRequest *)albumListWith:(int)tid;

/**
 * 相册月度列表
 */
+ (NSMutableURLRequest *)albumMonthListWith:(int)tid photoMonth:(int)photoMonth photoYear:(int)photoYear;


#pragma mark - Setting 设置
+ (NSMutableURLRequest *)settingsRequtestWith:(int)uid;
+ (NSMutableURLRequest *)settingModifyRequestWith:(NSData *)jsonData;
//uid, password
+ (NSMutableURLRequest *)passwordModifyRequestWith:(NSData *)jsonData;


#pragma mark 版本更新
+ (NSMutableURLRequest *)versionUpdateWith:(NSString *)osType version:(NSString *)version;


@end
